package com.example.cloud.model.business.medical;

import com.example.cloud.model.common.CommonModel;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

/**
 * Created by wangtao on 2018/7/2.
 * 主诉、既往史
 */
@Entity(name = "treat_complaint")
@Data
@EqualsAndHashCode(callSuper = false)
public class Complaint extends CommonModel {
    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    private Long id;
    // 患者主键
    @Column(name = "patient_id")
    private Long patientId;
    // 发病时间
    @Column(name = "time")
    private String time;
    // 主诉内容
    @Column(name = "content", length = 2000)
    private String content;
    // 发病情况
    @Column(name = "situation", length = 2000)
    private String situation;
    // 伴随症状
    @Column(name = "symptom", length = 2000)
    private String symptom;
    // 治疗经过
    @Column(name = "process", length = 2000)
    private String process;
    // 目前状况
    @Column(name = "state", length = 2000)
    private String state;
    // 使用情况
    @Column(name = "use_situation", length = 2000)
    private String useSituation;
    // 其他情况
    @Column(name = "other_situation", length = 2000)
    private String otherSituation;
    // 记录类型（1：现病史 2：既往史）
    @Column(name = "record_type", columnDefinition = "INT DEFAULT 1")
    private int recordType;
}
